import Layout from '@/layout'
export default {
   path: '/employees',
   name: 'employees',
   component: Layout,
   children: [
      {
         path: '',
         component: () => import('@/views/employees'),
         name: 'employees',
         meta: {
            title: '员工管理',
            icon: 'people'
         }
      },
      {
         // 动态路由参数，加 ? 有id也能访问，没id也能访问，没 ? 必须传入id才能访问
         path: 'detail/:id',
         component: () => import('@/views/employees/detail'),
         // 表示该内容不在左侧菜单显示
         hidden: true,
         meta: {
            title: '员工详情'
         }
      },
      {
         path: 'print/:id',
         component: () => import('@/views/employees/print.vue'),
         hidden: true,
         meta: {
            title: '员工打印'
         }
      }
   ]
}
